package cn.edu.sdjzu.xg23.kcsj01_backend.service;



import cn.edu.sdjzu.xg23.kcsj01_backend.entity.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {
    boolean addUser(User user, List<Long> roleIds);



    // 根据用户名、密码、角色ID登录
    User loginWithRole(String username, String password, Long roleId);

    PageInfo<User> selectUser(Integer pageNum, Integer pageSize, User user);

    boolean deleteUser(Long id);

    boolean resetPassword(Long id);

    boolean updatePassword(User user,String oldPassword);
}
